package simple.engine.objects;

public class Vector4f {
	
	private float mX, mY, mZ, mAlpha;
	
	// Getters and setters
	
	public void setX(float value)
	{
		this.mX = value;
	}
	
	public void setY(float value)
	{
		this.mY = value;
	}
	
	public void setZ(float value)
	{
		this.mZ = value;
	}
	
	public void setAlpha(float value)
	{
		this.mAlpha = value;
	}
	
	public float getX()
	{
		return mX;
	}
	
	public float getY()
	{
		return mY;
	}
	
	public float getZ()
	{
		return mZ;
	}
	
	public float getAlpha()
	{
		return mAlpha;
	}
	
	// Constructors
	
	public Vector4f()
	{
		mX = mY = mZ = mAlpha = 1;
	}
	
	public Vector4f(float x, float y, float z, float alpha)
	{
		this.mX = x;
		this.mY = y;
		this.mZ = z;
		this.mAlpha = alpha;
	}
	
	// Methods
	
	public void setValue(float x, float y, float z, float alpha)
	{
		this.mX = x;
		this.mY = y;
		this.mZ = z;
		this.mAlpha = alpha;
	}
	
	public void addVector(Vector4f vector4f)
	{
		this.mX += vector4f.mX;
		this.mY += vector4f.mY;
		this.mZ += vector4f.mZ;
		this.mAlpha += vector4f.mAlpha;
	}
	
	// Overrides
	
	@Override
	public String toString() {
		return "(" + mX + ", " + mY + ", " + mZ + ", " + mZ + ")";
	}
			
}
